package com.lzx.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.lzx.mapper.UserMapper;
import com.lzx.model.User;
import com.lzx.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;

@Service("userService")
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User queryByUserName(String username) throws SQLException {
        return userMapper.queryByUserName(username);
    }
}
